package com.jinmei.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import com.jinmei.model.Employee;
import com.jinmei.model.ToDoList;

public interface EmployeeDao {
	
	Employee findEmployee(String fNumber) throws DataAccessException;
	
	List<Employee> findAllEmployees() throws DataAccessException;
	
	List<Employee> findEmpolyeeByFNumberAndName(String fNumber, String name) throws DataAccessException;

	void saveOrUpdateEmployee(Employee employee) throws DataAccessException;
	
	List<ToDoList> findEmployeeTasksByFid(Integer fId) throws DataAccessException;
	
	void deleteEmployee(Employee employee) throws DataAccessException;
}
